package com.mytest.test;

/**
 * 多线程操作同一个资源类
 *
 */
public class Operation {

    public static void main(String[] args) {
        Item item = new Item();

        for (int i = 0; i < 15; i++) {
            new Thread(()->{
                item.getItem();
            }).start();
        }
    }
}
